//
//  ForumThreeCell.m
//  一键车讯
//
//  Created by Rabbit on 14-10-31.
//  Copyright (c) 2014年 lanou.3g.com. All rights reserved.
//

#import "ForumThreeCell.h"

@implementation ForumThreeCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        // 图
        _picLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_picLabel];
        // 标题
        _titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_titleLabel];
//        _nameLabel = [[UILabel alloc] init];
//        [self.contentView addSubview:_nameLabel];
//        _timeLabel = [[UILabel alloc] init];
//        [self.contentView addSubview:_timeLabel];
//        _replyLabel = [[UILabel alloc] init];
//        [self.contentView addSubview:_replyLabel];
        
    }
    return self;
}

- (void)layoutSubviews
{
    // 图
    self.picLabel.frame = CGRectMake(0, 15, 20, 20);
//    self.picLabel.backgroundColor = [UIColor blueColor];
    self.picLabel.textColor = [UIColor whiteColor]; // 设置字体颜色
    // 标题
    self.titleLabel.frame = CGRectMake(20, 3, self.contentView.frame.size.width - 20 , self.contentView.frame.size.height);
//    self.titleLabel.backgroundColor = [UIColor whiteColor];
    self.titleLabel.font = [UIFont systemFontOfSize:14];
    self.titleLabel.numberOfLines = 0;
//    self.titleLabel.adjustsFontSizeToFitWidth = YES; // 设置字体大小适应label宽度
//    [self.titleLabel sizeToFit];
}

- (void)dealloc
{
    [_picLabel release];
    [_titleLabel release];
    [super dealloc];
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
